package org.jeecg.modules.common.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.common.entity.Region;
import org.jeecg.modules.common.facade.IRegionFacade;
import org.jeecg.modules.common.service.IRegionService;
import org.jeecg.modules.common.vo.RegionVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 省市区
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class RegionFacadeImpl extends IFacadeImpl<RegionVo, Region, IRegionService>  implements IRegionFacade<RegionVo, Region> {
        @Autowired
        private IRegionService regionService;


         @Override
         public Region po2Vo(RegionVo vo) {
                Region po = new Region();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public RegionVo vo2Po(Region po) {
                RegionVo vo = new RegionVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
